|
|
|
|
|
|
|
Learn to create an MDI application |
|
|
|
|
|
|
|
|
Identify the difference between SDI and MDI |
|
|
|
|
|
|
|
|
Learn how to create an MDI form |
|
|
|
|
|
|
|
|
Learn how to create MDI child forms |
|
|
|
|
|
|
|
|
Learn how to create pop-up menus |
|
|
|
|
|
|
|
|
Sample Project Name: \Chapter15\MDI.vbp |
|
|
|
|
|
|
|
|
MDI is a popular interface in which you can have multiple documents/forms open in one application. Examples of MDI applications are Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and even the Visual Basic integrated development environment. Each of these applications allows you to have multiple documents open, and these documents are all contained within one container form. The container form is also known as the parent window. Each document, or form, has its own window but is confined to the boundaries of the parent window. This means that you cant drag the form outside of the parent window. |
|
|
|
|
|
|
|
|
Single Document Interface |
|
|
|
|
|
|
|
|
MDI is only one mechanism for creating an application. Its possible to have an application that only has one form. This is an example of a Single Document Interface (SDI) application. Notepad is an example of an SDI. When youre in Notepad, you can only edit and view one file at a time. |
|
|
|
|
|
|
|
|
You dont have to create your applications in an MDI paradigm. Even if you have multiple forms in your project, you can simply have each one as a separate, standalone form not contained by any parent form. The only drawback to this is that if the user wants to close your application, he or she must close each form individually, or you have to write code to close all the windows when you want to close the entire application. |
|
|
|
|
|